function getISBNs() {
	var imgObjects = $("img[isbn][src='"+assetsUrl+"images/default1.jpg']");
	var isbns = "";
	imgObjects.each(function(index) {
		var isbn = $(this).attr("isbn");
		$(this).attr("isbn", isbn);
		isbns += "," + isbn;
	});
	return isbns;
}
function showCovers(resultJSON) {
	if (resultJSON.result.length > 0) {
		for (var i = 0; i < resultJSON.result.length; i++) {
			var isbn = resultJSON.result[i].isbn;
			var coverlink = resultJSON.result[i].coverlink;
			if (coverlink != "") {
				var imgObj = $("img[isbn='" + isbn + "']");
				if (imgObj == null || imgObj == undefined) {
					continue;
				}
				imgObj.attr({
					"src" : coverlink
				});
			}
		}
	}
}
function coverCover() {
	var isbns = getISBNs();
	var url = "http://api.interlib.com.cn/interlibopac/websearch/metares"
			+ "?cmdACT=getImages&type=0&isbns=" + isbns
			+ "&callback=showCovers&jsoncallback=?";

	$.ajax({
		url : url,
		dataType : "jsonp"
	});
}